﻿<UserControl 
    x:Class="DiscoveryLogic.Analytics.Modules.Entities.OrgTreeView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="Auto" MinWidth="120" 
    HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <Expander Header="Organizations" ExpandDirection="Down" IsEnabled="True">
        <Border CornerRadius="10,10,0,0">
            <TreeView x:Name="treeOrgs" SelectedItemChanged="treeOrgs_SelectedItemChanged">
                <TreeView.ItemTemplate>
                    <HierarchicalDataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <Image Source="../Images/home.png" Width="16" Height="16" Margin="0,0,5,0"/>
                            <TextBlock Text="{Binding OrgDataSetName}"/>
                        </StackPanel>
                    </HierarchicalDataTemplate>
                </TreeView.ItemTemplate>
            </TreeView>
        </Border>
    </Expander>
</UserControl>
